package com.teach.demo01;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-06 14:03
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public abstract class AbstractShape {
  public static final float PI = 3.1415926f;


  /**
   * 面积
   */
  protected double area;

  /**
   * 周长
   */
  protected double perimeter;

  public abstract void input();//抽象方法是没有方法体的

  public AbstractShape(){

  }

  public double getArea() {
    return area;
  }
  public final double getPerimeter() {
    return perimeter;
  }
}
